import { SkuModel, SpuModel } from "./PropertyModel"

// 折扣活动
export interface DiscountActivityModel {
  Id?: number
  SpuId?: number
  Name?: string
  Status?: number
  Remark?: string
  StartTime?: Date
  EndTime?: Date
  Products?: DiscountProductModel[]
}

// 商品
export  interface DiscountProductModel {
  SpuId: number
  SkuId: number
  DiscountType: number
  DiscountPercent: number
  DiscountPrice: number
}

// sku拓展
export type SkuExtension = SkuModel & {
  ProductConfig: DiscountProductModel
}

export interface SpuExtension extends SpuModel {
  Skus: SkuExtension[] // 重写类型
}